package com.qd;

import com.cdqidi.config.LettuceConfig;
import com.cdqidi.config.mybatis.MysqlDdl;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author sjk
 */
@SpringBootApplication(exclude = {MysqlDdl.class, LettuceConfig.class, SecurityAutoConfiguration.class})
@EnableTransactionManagement
@EnableAsync
@MapperScan(value = {"com.qd.push.mapper"})
@ComponentScan(basePackages = {"com.qd.*"}, excludeFilters = @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, classes = {MysqlDdl.class, LettuceConfig.class}))
public class GyHikPushApplication {
    public static void main(String[] args) {
        SpringApplication.run(GyHikPushApplication.class, args);
    }

}
